{% extends "myadmin/base.html" %} {% block mainbody %}
<h3>商品信息管理</h3>
<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>
                id
            </th>
            <th>
                商品名称
            </th>
            <th>
                商品类别
            </th>
            <th>
                图片
            </th>
            <th>
                价格
            </th>
            <th>
                点击量
            </th>
            <th>
                状态
            </th>
            <th>
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        {% for goods in goodsList %}
        <tr>
            <td>
                {{goods.id}}
            </td>
            <td>
                {{goods.goods}}
            </td>
            <td>
                {{goods.typename}}
            </td>
            <td>
                <img src="/static/myadmin/img/goods/s_{{goods.picname}}" width="40" />
            </td>
            <td>
                {{goods.price}}
            </td>
            <td>
                {{goods.clicknum}}
            </td>
            <td>
                {{goods.state}}
            </td>
            <td>
                <a href="{% url 'myadmin_goods_edit' goods.id %}" class="view-link">编辑</a>
                <a href="{% url 'myadmin_goods_del' goods.id %}" class="view-link">删除</a>
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>
<div class="span9">
    <div class="pagination span8" style="margin-top: 0;text-align: right;">
        <ul>
            <li style="">
                <a href="#">共{{pageCount}}页</a>
            </li>
            {% for i in plist %}
            <li>
                <a href="{% url 'myadmin_goods_index' i %} " ">{{i}}</a>
            </li>
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}